<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <link rel="stylesheet" href="/pharmacy/bootstrap/header/bootstrap.min.css">
    <script src="/pharmacy/bootstrap/header/popper.min.js"></script>
    <script src="/pharmacy/bootstrap/header/jquery-3.4.1.js"></script>
    <script src="/pharmacy/bootstrap/header/bootstrap.min.js"></script>


</head>

<style>
    .inner {
        height: 30px;

        background-color: #F1F1F1;
    }


    .cr{
        font-size: 12px
    }
</style>

<body>




<div class="top">
    <div class="inner" >
    <!--登录注册-->
      <div class="login-left" style="display: inline-block;color: #767676;font-size: 12px;font-family: 微软雅黑;line-height: 30px;margin-left: 250px;">
          嗨，<span class="cr">欢迎你哟</span>
      </div>
    <div class="login-right"style="display: inline-block;color: #767676;font-size: 12px;font-family: 微软雅黑;line-height: 30px;margin-left:15px;">
        <c:if test="${sessionScope.user==null}">
        <a href="http://localhost:8888/pharmacy/index/login">登录</a>
        <a href="http://localhost:8888/pharmacy/index/login">注册</a>
        </c:if>
        <c:if test="${sessionScope.user!=null}">
            <a href=""><span class="cr">${user.userName}</span></a>
        </c:if>
    </div>


        <!--我的药房-->
        <div class="dropdown" style="display: inline-block;line-height: 30px;margin-left: 400px">
<%--            <a href="#"class="dropdown-toggle" data-toggle="dropdown" style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">我的药房--%>
<%--                <img src="/pharmacy/images/下.png" alt="" style="width: 8px"></a>--%>
<%--            <div class="dropdown-menu"style="min-width:80px;">--%>
<%--                <a class="dropdown-item" href="#" style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">我的团购</a><br>--%>
<%--                <a class="dropdown-item" href="#"style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">我的收藏</a><br>--%>
<%--                <a class="dropdown-item" href="#"style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">个人中心</a>--%>
<%--            </div>--%>
            <a href="/pharmacy/home/page"style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">首页</a>
        </div>
        <!--我的订单-->
        <div style="display: inline-block;margin-left: 15px">
            <a href="http://localhost:8888/pharmacy/order/seeOrder"style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">我的订单</a>
        </div>

        <!--购物车-->
        <div style="display: inline-block;margin-left: 15px">
            <a href="/pharmacy/cart/showcart" style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">我的购物车 <img src="/pharmacy/images/购物车.png" style="width: 15px" alt=""></a>
        </div>

        <!--电话-->
<%--        <div style="display: inline-block;margin-left: 15px">--%>
<%--            <a href=""style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">400-8811-020 <img src="/pharmacy/images/电话.png" style="width: 15px" alt=""></a>--%>
<%--        </div>--%>

        <div style="display: inline-block;margin-left: 15px">
            <a href="/pharmacy/collect/favorite"style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">我的收藏</a>
        </div>

        <!--帮助中心-->
        <div class="dropdown" style="display: inline-block;line-height: 30px;margin-left: 15px">
            <a href="#"class="dropdown-toggle" data-toggle="dropdown" style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">客服服务
                <img src="/pharmacy/images/下.png" alt="" style="width: 8px"></a>
            <div class="dropdown-menu"style="min-width:80px;">
                <a class="dropdown-item" href="#" style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">帮助中心</a><br>
                <a class="dropdown-item" href="#"style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">联系我们</a><br>
                <a class="dropdown-item" href="#"style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">投诉建议</a>
            </div>
        </div>

        <c:if test="${sessionScope.user!=null}">
            <div style="display: inline-block;margin-left: 15px">
<%--                <a href="http://localhost:8888/pharmacy/home/logout"><span class="cr" >退出</span></a>--%>
            <a href="/pharmacy/home/logout" style=" text-decoration:none; out-line:none;color:#767676; font-size: 12px; font-family: 微软雅黑; ">退出</a>
            </div>
        </c:if>

    </div>




</div>


<%--<script src="/pharmacy/bootstrap/header/jquery-3.4.1.js"></script>--%>
<%--<script>--%>



<%--  function search() {--%>
<%--      var value =document.getElementById("search").value;--%>


<%--      var paramters=value;--%>

<%--      alert(paramters)--%>

<%--      $.ajax({--%>
<%--          url:"http://localhost:8888/pharmacy/home/search",--%>
<%--          type:"post",--%>
<%--          data:{goodName:paramters},--%>
<%--          datatype:"json",--%>
<%--          success:function (data) {--%>
<%--            console.log(data)--%>

<%--              var jsonData = JSON.stringify--%>
<%--              alert(jsonData)--%>
<%--              alert(jsonData.goodName)--%>
<%--          }--%>
<%--      })--%>
<%--  }--%>


<%--  &lt;%&ndash;function loginOut() {&ndash;%&gt;--%>
<%--  &lt;%&ndash;    <%session.removeAttribute("user");%>&ndash;%&gt;--%>
<%--  &lt;%&ndash;}&ndash;%&gt;--%>
<%--</script>--%>
</body>
</html>